package xyz.csmcool.imchat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author csmcool
 * @since 2022-08-14
 */
@TableName("sjim_rooms_chats")
public class RoomsChats implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer senderId;

    private Integer roomId;

    /**
     * text= 1, image= 2, MP3= 3,REPLY=4,FILE=5,MP4=6
     */
    private Integer type;

    private String message;

    /**
     * send= 1, seen = 2, deleted = 3
     */
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }
    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdatTime() {
        return updateTime;
    }

    public void setUpdatTime(LocalDateTime updatTime) {
        this.updateTime = updatTime;
    }

    @Override
    public String toString() {
        return "RoomsChats{" +
            "id=" + id +
            ", senderId=" + senderId +
            ", roomId=" + roomId +
            ", type=" + type +
            ", message=" + message +
            ", status=" + status +
            ", createTime=" + createTime +
            ", updatTime=" + updateTime +
        "}";
    }
}
